﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[ExecuteInEditMode]
public class SmrInspector : MonoBehaviour
{
    public Transform rootBone;
    public Transform[] bones;
    public int vertexCount;
    public BoneWeight[] boneWeights;
    public SkinnedMeshRenderer smr
    {
        get { return GetComponent<SkinnedMeshRenderer>(); }
    }
    public Mesh mesh
    {
        get { return smr.sharedMesh; }
    }
    void Start()
    {

    }
    void Update()
    {
        vertexCount = mesh.vertexCount;
        rootBone = smr.rootBone;
        bones = smr.bones;
        boneWeights = mesh.boneWeights;
    }
}
